package cc.decat.escript.builtin;

import cc.decat.escript.object.ESBuiltinObject;
import cc.decat.escript.object.ESConstObjects;
import cc.decat.escript.object.ESObject;

import java.util.List;

public class ESLenBuiltinObject extends ESBuiltinObject {
    @Override
    public ESObject call(List<ESObject> args) {
        ESObject obj = args.get(0);
        return obj.getType().len(obj);
    }
}
